package aiku.numericalcontroloa.Mapper;

import aiku.numericalcontroloa.Model.Entity.PurchasePart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

/**
 * @Author 黄广庭
 * @Date 2024/5/22 13:38
 */
@Repository
public interface PurchasePartMapper extends BaseMapper<PurchasePart> {

    void insertBatch(@Param(value = "list")Collection<PurchasePart> list);

    /**
     * 根据采购订单删除订单零件
     * @param purchaseId
     * @return
     */
    int deletedByPurchaseId(@Param(value = "purchaseId") String purchaseId);
}
